export default class Loading {
  constructor (container) {
    this.container = $(container)
    this.el = $(`<div class="loading">
      <svg viewBox="25 25 50 50" class="circular">
        <circle cx="50" cy="50" r="20" fill="none" class="path"></circle>
      </svg>
    </div>`)
    this.container.append(this.el)
  }

  show () {
    this.el.removeClass('hidden')
  }

  hide () {
    this.el.addClass('hidden')
  }
}
